package com.gking.centerSystem.entity;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 受控制的访问ip地址，访问后端受访问策略控制，用来记录某一天，某个时段某个ip被服务器拒绝访问的次数
 */
@Data
@TableName("access_rejection_collect")
public class AccessRejectionCollect implements Serializable {

    private static final long serialVersionUID = 1L;

    //主键id
    @TableId
    private String id;

    //ip地址
    @TableField(value = "ipAddress")
    private String ipAddress;

    //受控日期
    @TableField(value = "date")
    private String date;

    //受控开始时间段
    @TableField(value = "startPeriod")
    private String startPeriod;

    //受控结束时间段
    @TableField(value = "endPeriod")
    private String endPeriod;

    //受控阶段被拒绝的次数
    @TableField(value = "rejectionCount")
    private Integer rejectionCount;

    //创建时间
    @TableField(value = "createTime", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

}
